Overlap detection fixed.