Add missing default value for res_id

issue3392
review1108002