Fixed creation of the directory