Fix sharing permission