minor bugfixing for Qt