fixed try_to_save_a_few_sign_inversions_where_beneficial