Fixed root node composition type check