Bug fix in enum_matrix.