dont crash if history is empty