fixes in history load/save