fixed extractFeatures