fix the sub to neg_add case when the flags of the sub are used