As long as malware is zipped, it won’t do harm. So why have the on-access scanner scan zip files? The content of the zip will be scanned as soon as you unpack it. Avast will detect the malware then.

If you like to have the on-access scanner also scan zip files, add the zip extension to the list of scanned file types.