fixing inconsistency in checking for xupper vs. data[i][2].xerr[1]...