fixed memory leak and duplicate auction id