fix get name bug