fix the zero duration bug