getNrOfLevels now returns the correct nr of levels