minor bug fixes
Merge branch 'master' of http://github.com/maxbrister/nmt-jam0