If you delete the temporary files before defragmenting you will have a better defragmentation and will get rid of this problem. Of course, disabling avast will speed up the process