fix line startY and endY, added segment unmake