Bugfix for PySide.