Fix call to incorrect function