fix readid_file undefined