Fix stack trace compilation error