Removing none active lines