Yet another fix for the integrals