Fixed incorrect function parameters.