Fix keys lifetime