bug with cache