fixed a bug related to applyFeatuers