fix to empty file save