Gold not refunded after cancelling a purchase?

why in the hell is my gold not refunded when I cancel and item I posted on the market to change the price?

they take a deposit to discourage people from listing and unlisting immediately