Fix execution of callbacks.