Simplify hook hashing
Add missing line