Fixed bug with nested resources with alternate names