Fixed crash on pane