callMethod fix for some callbacks on C++