fixed bug in computing dispersion for key phrases [still incorrect]