A problem with Avast when upgrading to Windows 8

I just upgraded my windows 7 Pro to windows 8 Pro today. All went well except Avast. It had a question mark on it and stated that the Network Security was turned off. I tried to turn it back on but it would not do it.
I went into Program and features and did a repair and that fixed it
Robin