Fix bug that was sometimes preventing to save an accurate time