bugfix rows/cols were confused in get_field_from_matrix_for_coord