Fix to get the level.