Fixed a bug for the case when ncites==0.