Fix: hooks get enabled before auto analysis