Fixed lineToPie() function where the pie appeared too soon.