fix merging 3 and more resources with equal name