fixed the duration issue (#5)
Merge pull request #17 from huase/master

fixed the duration issue (#5)