Minor change, fixes Sleep History saving