fixed library bug, made little changes in QT