Fixed DirectoryDialog issue