Error on dynamic menu when setting default application

I have a dynamic menu that works fine except when I want to set a default application.
Please note that the “wohdate_treemenu” in the error is the menu application that is running, not
the default application I’m trying to set. Any ideas how to fix this?

[ATTACH=CONFIG]n80235[/ATTACH] [ATTACH=CONFIG]n80236[/ATTACH]

woh.JPG

woh2.JPG