Fix can't find pane bug