Fixed broken resource caching