Correct error for activating hooks