Corrected bug for text formatting in MiddlePanelInsert