Fix grouped record schema