set duration delay bug fix