fix qt5 compatibility