fix build, address comment from @lavaturtle about reseting the dirty tracking variable.