fix for nested resources