I dont know this is bug or something. I open stall and sell 8 ruby for @2,5m, after all ruby sold, i just get 18m, anyone can help/explain ?

This is my screenshot, before i just have 9889 cegel.

now i try to sell 7 ruby and 1 crystal to know what actually happen.