fixed sharing code emit