Fix binary file variable error handling.