work around  https://bugreports.qt-project.org/browse/QTBUG-39859