bug with files on galleries