Fix small bug in lines function
Merging lines bug fix