Bug found

See comments. First trackpoint is never written to the new tree. Can't
immediately see why.