fixed directory name bug