Password overlay not working

When I open and app or a website in Android, the Avast overlay does not come up. If I hit the home button, then return to the app, then the overlay comes up. Or if I switch to another app, then come back, the overlay comes up. It behaves this way consistently. Anyone else have this problem? Any ideas?
Thanks