fix exception prinitng