Fixed issue with enabled stataus for sub-sections not being converted to a integer.

Please note default setting is enabled = 0 so if you want to use a sub-section you need to set it to enabled = 1