Fix: open the storage file with write permissions