fix for duplicating panes