fixed bug with cmd