A couple more bug fixes

*fixed: SellMax cleared out all items even when value more than the
total coins received.
*fixed: coins lost on logout/login