fix cmd bug