fix to sharing logic