fixed incorrect callback names in checking if callback is set

Incorrect callback names are used in the if expression that checks if a callback should be triggered