Fix backtrace not being displayed on errors