Fix issues in nextUntil and prevUntil

This pull fix missing method definition into nextUntil and prevUntil