Fix the returns of callbacks.