fixed compatibility issue with older pypet versions