fix incorrect binary protocol