Use correct function argument
Merge pull request #6347 from wmtan/UseCorrectFunctionArgument

Use correct function argument