fix binary corruption