fix bug in leave messages 1