fixed bug with negative substitution durations