fix bug in fci_rdm.c