FOLDERS PROBLEM WITH IMAGE GALLERY

I have made a clean install of ss (2.4.5) with the latest (Github) modules :
image_gallery
dataobject_manager
uploadify

The install went ok but now I have a problem :
Evrytime I create a gallery page it creates several folders in Files and images with the same name.
Now if try to change the page type or try to delete some folders I get errors occuring because it doesn't find the right folder.

im having a mare with the latest version of image_gallery and ss 2.4.5
it all works fine locally, but as soon as i upload i have problems.

clicking "create image gallery page" does nothing. (emails an error to me saying: Error: Uncaught Exception: Cannot move /var/www/vhosts/cafemusicstudios.com/httpdocs/assets/image-gallery/NewImageGalleryPage-8/ to /var/www/vhosts/cafemusicstudios.com/httpdocs/assets/image-gallery/NewImageGalleryPage-10/
At line 422 in /var/www/vhosts/cafemusicstudios.com/httpdocs/sapphire/filesystem/File.php )
if i refresh, the page appears, but if i try and upload an image it throws up a server error. and emails me a very similar error message to the one above.

looks like permission issues with image_gallery creating directories?
but my whole assets directory is 777.
AND ive even tried manually creating the directories myself and giving them all 777 but it still fails.

yeah i got it working in the end, but i actually cant remember how!
i THINK i may have used an older version of image-gallery...

also, i deleted ALL mentions of image and image gallery in the database.
then deleted the 3 modules.

and re-installed them like this.

dataobject & uploadify
then dev/build

then image_gallery
dev/build again

now it all seems to work fine.

except for some reason uploadify is missing the 2 images in the CMS area "unlink and delete permanently" however they can easily be re-added yourself to the images folder. then referenced in the uploadify template file.