Fixed a typo in the hook