bug fix : message sending doesn't work after first message