fix issue with using save_resume class as the load_function in session.