Fixed incorrect usage of nested resources