fix saving unique files in filemanager