Files was copied twice in file