Fix is_hook() bug, deduplication should be ok again.