Fix saving single file as null.
resolves #491