Fixed a QT problem