fixed exception-related error in prefetch.py