fixed bugs in bidding.py