Fixed an error in utils.py.