fix some share bugs