Just sprinkle some cinnamon on the soil, see if they're no longer flying around after a couple days. Also make sure you have enough air movement, they like stagnant air and have a harder time living in an enviroment with lots of air movement.
Cinnamon will make your grow smell bomb-ass too.