fix erroneous stack trace