FIx mistakes in static_matrix.py.