fix binary io