fixed bug with mixture of smooth and linear lines