fix double class attribute for button