fix bug of non existent lines dom