From what I understand, fungus gnats are there because there is food attracting them. By food, I mean perfect conditions such has water logged soil that create fungus & rotten roots.
Reset the soil with H2O2 then maybe keep the soil humidity lower? I never really worried a lot with gnats...it...