Script is deleted after turning on and off the power supply

I am using OpenMV H7 camera. When I save the script by “save open script to openmv cam”, turn off the power then turn it back on, the code inside deletes itself. Is this a faulty camera or is this fixable?

Hi, can you eject the OpenMV Cam disk after running that command before powering the system off? The write most likely did not happen to the camera disk. (The internal uPY drive is FAT12 which causes OS drivers to treat it not like a standard USB key and do writes immediately).