Double folders bugs

When creating a new folder with the same name of existing one and placing it in the same directory, the old folder disappears together with its feeds.

Also, when importing OPML with the same folder as existing, it appears twice in the list.