fixed bug in saving bid