Fixed hanging if opening duration is 0