Merge "Fix the number of levels returned by getLevels()."