Fix trivial bugs with new LF until all tests at least run without crashing
Fix: walking backwards into unterminated loops