avoid reopen script