DirectoryCheck fix