minor bug fixes on pyside/linux