fixed the bug calling Nr() and bug in max() that was causing the problem described here: https://github.com/nltk/nltk/pull/544