fix bug in extractor