Fix error when two trackpoints have the same timestamp.