Fix to actually save file