Fix bug with pyside