matsub: index check failed, bad index
