Matrix multiplication correction