Fix post-2.0.0 hook bug