fix bids for mongo