--- a/tg/util.py        Tue Feb 02 16:53:02 2010 -0700
+++ b/tg/util.py        Wed Feb 17 19:18:22 2010 +0900
@@ -64,8 +64,9 @@
     """

     match = prefix + "."
+    n = len(match)

-    new_dict = Bunch([(key.lstrip(match), dictionary[key])
+    new_dict = Bunch([(key[n:], dictionary[key])
                        for key in dictionary.iterkeys()
                        if key.startswith(match)])
     if new_dict:

