Fix typo that caused stack trace to not be saved.