If you have gnats you not only have to cover the top layer but also the drip holes in the bottom of your pots.
Due to you blocking the top they will still enter underneath.
Just something that happened to me when i got these little F*ckers from some clones.
J