Fix the change to rt.lifetime

The logic was more complex than expected.