send messages bugfix