Fixed bug in Button class