Fix call when using pyqt5