fixing bug with type_grid_json using wrong field