fix issues found when use it with pyqt4.4 and numpy 1.3