Why does the path go straight and then back to a curve when clicking on last node to make cusp?