fixed bug in extract_utils.py