fixed duration issue #5