change negtive duration bugs