Convert resources to array before adding