Fixing duplicate file reporting