fix binary_reader