Fix updating of existing case in cache.