On the functoriality of marked families