Fix nested resources