fixed load_data in binary mode