Fixed a infinite loop in the Exception Factory.