fixed generator. backtracking is broken again.