Fixed creating directories