I don't know why, but this fixes the "share not working in Details view" problem!