Minor HTMLencode in references value issue fixed