Fix tag distances