Fixing messages not being sent