fix incorrect restoration of pane positions on Apple.