Fix in 'share' logic

Only just noticed this while looking over the code...