I am writing an Assamese book using XeTex. While using \subsection command, it starts numbering without the section number it belongs to. \subsubsection command does not print any number and also its indentation is wrong. I have tried with \renewcommand. But could not fix the error. Using ployglossia also results into same condition. Further, in order to get chapter numbers in Assamese numerals, I had to define \bengalinumeral as shown in the following.
\documentclass[12pt,a4paper]{book}
% For a bilingual document
\usepackage{fontspec}
\usepackage[banglamainfont=SolaimanLipi, banglattfont=SolaimanLipi ]{latexbangla}
%\setmainlanguage[changecounternumbering=true]{bengali}
\setotherlanguage{english}
\usepackage{fancyhdr}
\makeatletter
\def\bengalidigits#1{\expandafter\@bengali@digits #1@}
\def\@bengali@digits#1{%
\ifx @#1
\else
\ifx0#1০\else\ifx1#1১\else\ifx2#1২\else\ifx3#1৩\else\ifx4#1৪\else\ifx5#1৫\else\ifx6#1৬\else\ifx7#1৭\else\ifx8#1৮\else\ifx9#1৯\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi
\expandafter\@bengali@digits
\fi
}
\makeatother
\def\bengalinumber#1{\bengalidigits{\number#1}}
\def\bengalinumeral#1{\bengalinumber{\csname c@#1\endcsname}}
\renewcommand\thechapter{\bengalinumeral{chapter}}
\renewcommand\thesection{\bengalinumeral{section}}
\renewcommand{\thesubsection}{\thesection.\bengalinumeral{subsection}}
\renewcommand{\thesubsubsection}{\thesection.\thesubsection.\bengalinumeral{subsubsection}}
\numberwithin{subsection}{section}
\numberwithin{subsubsection}{subsection}
\begin{document}
\chapter{ওভটনি সোঁত}
%\begin{bengali}
\section{পাতনি}
abcdefgh কখগঘঙচছজঝঞ টঠডঢণ তথদধন পফবভম যৰলৱ শ ষ স হ ক্ষ
আ অা ই ঈ উ ঊ ঋ এ ঐ ও ঔ
\subsection{কককক}
abcdefgh কখগঘঙচছজঝঞ টঠডঢণ তথদধন পফবভম যৰলৱ শ ষ স হ ক্ষ
আ
অ আ ই ঈ উ ঊ ঋ এ ঐ ও ঔ
\subsubsection{খখখখ}
\section{হহহহ}
\subsection{এয়া চাবচেক্চন}
\end{document}
Would anyone guide me please.
Thanks and regards.

