Hello!
1. Check your code since I don't remember having problems with unlocking levels. If you can't find anything from there. try to look for the YouTube comments for similar issues and fixes!
2. You need to add to WaveSpawner.cs at the Start function the following line: EnemiesAlive = 0; and after that the bug should be fixed.