fixed setMessages merge order