fix cmd next ref