fix on flagscontoller to fix errors on new flags