also clear the dirty bit in the paint event