Bugfix, was computing collection frequency instead of document frequency