replaced page.data with current_resource.data to sidestep a bug in the way middleman handles collections