I had the same issue and it was really annoying. What helped me was I renamed the folder I had the issue with, then it made the new folder but kept the old one as well but it was empty. I was able to fix the redirectors in both folders afterwards, and deleting the old folder.
Remember to always backup your project before tempering with files on a large scale.