fix parallel lines detection in the lines intersection calculation. fix #618