Fixed infinite loop of FormatExceptions