Fix logic for showing missing commands