fixed bug in message data model