fix open file