fix for an msvc iterator error that caused a smartcoin-qt crash