Fixed a hook issue