Fixed bug in numerical integration along cartesian axes.