Fixed some numerical problems in Quadrature Integration