fixed reopening while closing