Fixed bad array index.