Fix the error when there was no file submitted