Fix for PyQt5.