Fixing a canvas path length issue.