removed a bug from EWSM.cpp.