fix two bugs, missing references to 'exc'