fix pyes compatibility issue