So when i click "sell 1", "sell 5", and "sell 10" things are fine but when i click "sell All" it glitches out. It sells the noted items 1 by 1 and it takes really long time. How can i fix this?

Here is a video to explain it: