Fixed rendering bug with buttons.

fixes #7