I knew I was going to miss one of these; fixed TOP_LEVEL_GROUPS -> TOP_LEVEL_FIELDS