Wifi option on profiles is set to Optimization ON, that means it should only turn off wifi when I'm not connected. But what is happening on my phone is that avast is turning off the wifi when screen goes off and turns back on when I unlock. How to fix this?