Now, ecorr.cpp is working fine.. problems only exist in lfp.cpp