bug fixed for pypy.