Fixed bug with messages.