fixed mistake in remaining count reporting