fixed subtotal count for warnings