Changed the order of polyline centerline if statements