Fixed problem with count_done.