fix a share variable error