correct bad flag