set flag properly in sub_common