fixed by replacing integrate with Integral
 added thanks and ref to bug