Fix possible NaN duration calculations on load