Fixed typo in get_apphooks() method