CalendarNav sample error

For infinite page control, we are looking at the [CalendarNav] sample.
By the way, while testing the gesture,
If you swipe the calendar page and then quickly swipe in the opposite direction before the page stops,

I get the error ‘Node already has parent’.

Is there no way to fix this?