I added an extra check when creating a new folder