fix isShared bug