fix continuous reloading when unchecking all hooks