Messaging system should be working properly, but it does not