Bug fix

fixed line intersection method