Sigh… I thought I was smart when I implemented this feature, but apparently I didn't think about one special case. And that causes some funky behavior just because the layout is so god damn complicated (nested things within nested things, if you get my point).