Fixed imcompatibility with PySide.