Save to file fix