party render with render.py and video.py: points are not connected

i am using the great video.py to create animated mpegs of gpx files.
however, sometimes the script does not create a continuous path but just a number of unconnected dots. is there something wrong with my gpx files?

How does it look on the website gifs?