fix open script