Fixed the fetching of the stack trace (it was getting the wrong one)