What version of avast!? Free, Pro, AIS, Premier?

You may need to add the executable to exclusions for it to work with shields activated and/or tick “Scan traffic from well-known browser processes only” in WebShield. Try the latter first and report back.