fixed a duration issue