Fixes a bug where the cache would get more and more