fix history reload logic a little