Fix bug of cache invalidation at updating transactions