Flag action fix