Fix bad count