Some pretty hacky fixes for the panes...