fixed some bugs with pyside and/or linux