fixes to count_up