Fixed rendering bug with buttons.
Merge pull request #9 from weiran/master

Fixed rendering bug with buttons.