fix a bug in feature index