fix getfileindex() in gnutella