Fix errors on old refines.