fix bug in score integrator