Fix exception traces