bug fixes to new sharing feature