Corrected bug (error if there was no previous history to load)