fix incorrect function call