fix level gen
Merge branch 'master' into gh-pages