fixing default filename bug