fixed possible money duplication bug