After a lot of further research I found it was not Avast which has the bug. I uninstalled Avast and the bug was still there. When I turned off Trusteer Rapport the bug disappeared. Trusteer say bug not in their software but in Generations software. Anyhow,problem solved, Trusteer stays off.