Solving a bug with the folder creation