fix open behavior