fix a updateActivityRole bug