fixed ordering for history messages