Fix backtrace detection