Fixed get count bug