fix construction of button