fix cmd portal cancelling