Fix in flag_name with a crash bug found