fix bug in isotropic scattering code