fix exception printing