Fix NPE causing issue with the cache. Derpy derp.