Combine re element into constructPath

move these two lines after `if (height === 0)` check