Add type attr in childLevels, fixes #7233