Error On Addon Save

Hello,

i have a addon name test_addon .In addon.xml file i use below part of code

  
  					
  
  template
    addon_setting.tpl
  
  
    hidden
  
  
 

and when i save value of tpl file in hidden field i got an error stating :

Illegal string offset 'section1'

on app/Tygh/Settings.php, line: 641

Any suggestions why this happening ?

Thanks,

Looks like sections tag is not closed

Try

  
    					
      
        template
        addon_setting.tpl
      
      
        hidden
      
    
  

its closed in actual code i just missed it here .Although error comes on first save of addon setting.

I have no idea. It is required to examine the whole xml