SOLVED :
It was a problem in my code.I used strcmp (c8* to std::string.c_str()) to compare node names and return the matched node and that doesnt worked the returned node was always wrong.(i dont know why) So i built a std::string from c8*
and compared the two std::string instead.