Fixed both RES/NER bugs.

1. QT causes NER to not load.
2. Also fixes #155