fix open different files