fix a bug when there are multiple entries per word