Fix property constraint in Message class