Fixed a bug processing the "-ec" input parameter.