fixed removing lines