fixed incompatibility bug with pypy