A minor change...I changed the order in which hooks and K rules are applied (now hooks come first), and I also fixed this issue. I think it is minor enough to go through.