fix register-message-state bug