fixed extracts handling error