fix for qt_wallet issue #47