Fixed incorrect matrix multiplication when calculating new lattice matrix