Fixed crash while openining a message.