fix pyside compatibility refs #2656