Fixes on ngrams handling code.
Merge branch 'master' of https://github.com/torrents-com/www