Fix hooks for 1.7.5