Bugfix for saving files using PySide.