Go to Avast main GUI → settings → troubleshooting → “load avast service only after other system services”. Save and reboot.

If this happens again, go to “Add / Remove Programs” and repair Avast. After the repair, please reboot.

BTW, when you run the “fix it” in Avast, you also need to reboot for the final fix to “kick in” (unfortunately, the procedure doesn’t request nor reminds the user to do so).