Fix problem with non active nodes, because last link is inactive