fix message not getting posted bug