Fix dirty tracking.