fix open panel error