fix for binary file