fix bug in dhf.direct_scf