Changing the reference to the callback function so that the error will run