minor safety fix for the Pane