Fixed incorrect default value in ifs for save_history