Fixed the counting of completed and not completed items.