think i fixed the reopening issue