fix some bugs about Visit Object