Fixed an error in the sharing string calculations.