fixed button painting issue.