fix Qt5 compatibility