Small changes in Sharing.php