fix merging 3 and more resources with equal name
Merge pull request #86 from lucky-user/master

fix merging 3 and more resources with equal name