Added INVALID message_state with value 0 to suppress some errors