Fix history check