fixed bug when everything is over represented