fix bug in diis