Fix user execution of hooks