fixing line deletion