fix negtive duration bugs