fixed more precond bugs. QT still not working on my desktop.