diis control and set_geom() potential bug fix