Fixed form on matrix_generate.