fix bin file format