fix get all bids query