FAIMS-838 Fix remove file gallery bug