fix global name issue