Fix broken view by turning ActiveRecord::Associations::CollectionProxy into an array before operating on it