fix file share bugs