fix check for market_id (is Decimal now)