Fix error on Python 2.5