Fix invalid order of attributes.