Corrected management of include/exclude hooks