fixed unset paint flag on edit events