Fixed bug at the retrieving from session value in the cache mode.