bug fix relativeLen