Fixed typo coming from last pull request merge preventing hooking to work.