Fixed iOS 6 crash and cache management