Fix for 'undefined variable cacheInstance', should be a field