fixed a bug of create new dir dialog