fix naming issue for nested objects with repeated name