fixing card count