I am having trouble with my Magento install, in the CMS when I go to insert an image with the wysiwig editor the folder keeps opening repeatedly.

The folder structure should be:

```
- infortis
    - brands
    - fortis
    - ultimo

```

But what I get is:

```
-infortis
    -infortis
        -infortis
            -infortis
                -infortis

```

And this just keeps repeating. 

Magento Version 1.8.1. Any help appreciated.