fix incorrect offset in displaying relative lines