Fixed logic in createMessage