missing loop exit when nil cfg