fix a bug in hard data mining