Fixed bug with missing output files.