Fix activation hook issue