Fixed pipe overlapping when regenerating