Fixed bug in Button

Fixed bug in Button