Fixed doubling of files