empty history saving fix