Auction function fixed

Please check for the fix.