Remove free-floating nodes in expansion