Fix logic for bento box panes.