fix typos in sharing code