Fix in NLG. Incorect sunthesis of next and prev values.