fixed typo with call to array.join