fixed for Qt5