fix lifetimes [thanks mahkoh]