working. Fixed crash, caused by doing pointer math on a invalid pointed,
--bids.end