Fix matrix multiplication for previous commit.