Fix inccorect summary with custom record classes