Some fixes for switching to partial_fit.