fix bug with concating a nodelist to an array