Fix bug about FileIDs duplicated in x_x+1 tables