fix history feature