fix for cnt in SCH, test code