fix sharing problem