fix extraction rules