fix some bugs in FeatureVector