Fixed issues with "collection" being used instead of "items" when provided.