Bug fixed for sharing.