Thanks for your help. Delaying the start of the avast service solved my problem.