fixed sending messages