Fix one forgotten reference to `elements` rather than `resources`