fixes a bug when calculating equivalent ranges; #103