Fix loading hooks when going though the routing system