Fixed wrongful ordering of new messages.