Bug fix: calculate overlapping correctly