Feature 455: update hook repair

Update query repaired. Now this should work.