fix binary check