Fix nested resources.