Fix binding loop.
Add debug output.
Fix selection when switching between levels.