this is just stupid. why would you have to pay his market value TO him when you fire him? you should only have to pay his salary
if you try to do this with a player who is not retiring, you will only have to pay his remaining salary...but you have to pay his salary + market value. Must be a bug