debug wrongmessagetype