Fixes dumb error with when to execute callback