fix chat type is now binary