fixing error message in integrals