CORE-4979: fixed an incorrect function call