I am using the smooth function in a shape generator to represent tree canopies following this example It mostly works really well but I always get one sharp corner and its always at the second vertex. I have tried running Vector:Smooth from the processing toolbox to test if it's the shape generator that's the issue but I get the same results. I also get the same issue if I use create geometry by expression from the processing toolbox.
I know 50 iterations is extreme and I only need 10 to get a good result

And here is an example with the smoothed line shown in orange - the north most corner is sharper than it should be

