fix call public methods error