Fix stack trace issue.