Fixed mistake related to message type setter.