Bugg-fix in DFT for open shells.