Fixed undefined index for #1