fixes for qt5