fixed count detail bug