fix empty attributes
only add container if more than 1 element is added