Minor HTMLencode in references values fixed