fix Binary conversion bug