small bug where an exception is not cleared before being overwritten