fixed typo in completeness check for matrix mode