Fixed a bug  newButton