I liquidated a position and it created a new negative position instead of deleting the existing one

I was using the web interface, see screenshot below:

it was a bug and was resolved by the Alpaca team

how was this resolved?

For account specific issues such as this, contact support@alpaca.markets. The broker team can track down problems and make manual adjustments as was the case here.