fix pefs window reopen