Fixed the problem where messages were not being received