Fix a few more bugs with pyside