Fixed createMessage.