Remove unneeded callbacks when sending messages