Fix activation hook