fix some level bugs
Merge remote-tracking branch 'origin/master'