Put the attributes in the right place.