fix tnt move to next/prev sibling algorithms