Loop connections length corrected