fix p_set_meatdata ,use global variable