Correction undefined cacheData variable