Fixed bug #3 in session share