improve the performance of the ElogLik.cpp
minor fix