fix bug in find_errors.py