Fixed rendering bug with buttons.