Fixed loading of history so that current history isn't erased (WTF!).