fix empty history