total count issue fix