Fixed undefined error with articles array