Messaging system not working properly !