Fix issue with undefined on pane