fixed lifetime bug
Merge pull request #7 from hoi/bug

fixed lifetime bug