Fixing dac flag bug