I am working with GPX files from OpenStreetMap to render the public transportation lines of Berlin. I converted them to GeoJSON using the togeojson script. For some reason some of the lines are rendered as a "circle". The first and the last point are connected for some reason. The effect can be seen at the GitHub project I linked.
What am I doing wrong?