minor bug fixes for straight line intersection