fix messagetypes