fixed summary counting