Fix pyside issues