Fix error in demand feature extraction.