Fixing issue with showing stack trace