Fix setter for message types