fix getLevels
fix quality switch