fix bug when using private instace