Compiler: fix sharing