fix re-paint issue.