Added bug for lifetime issue.