fix bug in jpl caching