It's a false positive. Avast is notorious for reporting false positives. I have reported the issue to Avast and hopefully they will resolve the issue