Fix bug in exception handling code.