fixed the unaligned issue

still cannot output the contents of the counter...