Fix layout bug for empty container.