Fixed permission problem in flatpak

Fixed permission problem in flatpak