Half of the path lost after pausing an activity (but laps, total time and distance are correct)

Today I went for a ride and at a certain point a paused the activity and put the device to sleep. After resuming it all good. However, after a few hours the device rebooted by itself, and the path appeared with a straight line from the point where I paused the activity to the device crash. Analyzing the FIT file, it looks like all the date between these 2 points is missing, but climbs and lap positions are correct. 

This is the secone time this happens (the first one was back in May, so I guess this is not due to a recent update)

It's extra frustrating as I needed the gpx for a competition.