Fixing invalid folders.