Fixed bug in folder creation