Fixed bug in code to find right peak; resolves https://github.com/nltk/nltk/issues/408