Fix: overlaps() function did not return correct overlap counts (was always 0)