fixed count bug issue