corrects routes for nested resources