Fix to layout bug with multiple relations

move the fieldset inside the for loop,  multiple relations were not separating correctly.