Fix file saving.