Fixed bug lines with different slopes were being put together