Merge pull request #9904 from nabinhait/hotfix777

Removed a deprecated function call