Fixed error with caches sessions