fix lifetime error with latest nightly