Fixed off by one in line removal