fix missing output dir