fixed for empty intersections
fixed zero hash intersection