fix shared bug