Fixed Maxbutton Set Bug