JC: fixed ERP bug in new/edit. spec passes.