fixing for flags flag fix