Attempting to fix edi error