Patch wrong matrix data