Fix for bug where an error would occur when trying to view results after file upload.