fix of constant for correct calculation of intersections