fix backwardtrace & forwardtrace