The best way to handle this is to use “Offline mode“. The problem is that we save IDs of images when saving custom order and not paths. When the SD card is removed, F-Stop removes these images from its database. When the SD card is available again, it adds the images back but they get new IDs.
Let me know if this helps.