fix some integrals