fix open window