Fix populate-entity-tagarray.