fix bug with get empty commands list