fixed bugs in mstage_unshare chain