Modify edc.cpp a little.