Fix lifetime error