Restoring the history size