bug fix for edge case with reltagcalc