Fix bug with messageType values as int instead of string