Fixed bug when creating new folders