Fixed crash during file check.