Index: /branches/eraser6/6.0/Eraser.Manager/FileSystem.cs
===================================================================
--- /branches/eraser6/6.0/Eraser.Manager/FileSystem.cs	(revision 1860)
+++ /branches/eraser6/6.0/Eraser.Manager/FileSystem.cs	(revision 1878)
@@ -45,4 +45,5 @@
 		{
 			//Initialise the base name, if any.
+			Prng prng = PrngManager.GetInstance(ManagerLibrary.Settings.ActivePrng);
 			string resultPrefix = info == null ? string.Empty : info.FullName +
 				Path.DirectorySeparatorChar;
@@ -72,5 +73,7 @@
 			while (info != null &&
 				prohibitedFileNames.IndexOf(Path.GetFileNameWithoutExtension(result)) != -1 ||
-				(Directory.Exists(resultPrefix + result) || File.Exists(resultPrefix + result)));
+				(Directory.Exists(resultPrefix + result) ||
+					System.IO.File.Exists(resultPrefix + result))
+			);
 			return resultPrefix + result;
 		}
