Guys I just found out it WASN’T avast! that did it. It was a different application on my computer that wasn’t doing the weird thing. So this topic is resolved now.