Fixed bad index.