fix history check