fix call public methods error

cannot call public methods.