Fix an issue with the directory picker.