Fixed a few bugs associated with refactor. Deal with parallel lines.