fix deleteButtonBug