Fixed stacktrace detection