fix history clear