Fix bug with resaving container.