fix bug, see https://bugreports.qt-project.org/browse/QTBUG-27469