fix: saving file when defaultSize is undefined