fix infinite loop if folder and subfolder has the same name