Correction bug (enchere), refactoring