Fixed crash when running singles algo with discrete params

singles algo would crash if last iteration in discretes loop was not a "full floating" fit