Correcting the betweenness measure