fix can't find pane bug