Fix bug of calculating total duration
Merge pull request #387 from kmiyake/hotfix

Fix bug of calculating total duration