fixed bug on changeLevel()