Fix calculation of the research-rate when xattribs are used