fix remaining count