Some fixes on ordering and display of chat messages