Fix bug with segmentation fault when using static petaloid.