Why is the collection being set to the result of a render method?