fix deleteMax