fixed error with no history.