Fixed bin file generation