fix sharing crash problem