Fix bug stopped generation after level 10