Make sure closed paths have a smooth join.