Fixed bug with new directories creation