fix binary output