fix node stack for leftovers