Array fix

Create do_not_duplicate array before all else so it doesn’t pass error
into feed.