fix bugs of button