Fix bug in container attr.