fix the extraction