fixed for qt5