Fixed bug when searching for root cause of exception