Fix matrix subtraction bug