fix: set state to 'finished' when counting finished