fix asset merge logic