Fix bug that when soil analysis available in the input file, the soil_id get incorrect output value