bug fix: don't allow saving with empty filename