Fix crash (cause: flag all instead of flag total).