Fixed bug in Message class