At the end of LoadHistory: ``` if loadedHistory is not None and "datetime" in loadedHistory.columns: loadedHistory.set_index("datetime", inplace=True) ```