Fixed up dirty checker