fix bug for pmdAgent.cpp