fix integrals errors